#/usr/bin/env python

#imports
import pygame
from newtonworld import *

def main():
    screen = pygame.display.set_mode((800,600)) #seteo con una tupla

    fondo_srf = pygame.image.load('images/fondo NW.png')

    while 1: # comienza el bucle principal


        for event in pygame.event.get() :
            if event.type == pygame.KEYDOWN :
                run_world()
                
        screen.blit(fondo_srf, (0, 0))
        pygame.display.flip()

if __name__ == '__main__':
        main()

